package com.scada.model.bean;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class LectureInfo implements Serializable{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1451733029168152031L;

	private Long id;

    private String title;
    
    private String lectureNum;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private String address;

    private Integer limitNum;

    @Builder.Default
    private String isShow = IsShowCode.YES.getKey();

    private Integer createId;

    private Date createDate;

    private Integer lastUpdateId;

    private Date lastUpdateDate;

    private String remarks;
    
    private Integer lectureType;

    public static enum IsShowCode {
		 
    	NO("0", "不可见"),YES("1", "可见");
		
    	IsShowCode(String key, String value) {
			this.key = key;
			this.value = value;
		}

		private String key;
		private String value;

		public String getKey() {
			return key;
		}

		public String getValue() {
			return value;
		}
		
	}
}